import 'package:flutter/material.dart';


void main(List<String> args) {
  runApp(MyApp()) ;
}


//自定义组件
class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar:AppBar(
          title: Text("flutter demo"),
        ),
        body:HomeContent(),
      ),
      theme: ThemeData(
        // brightness: Brightness.light,
        primarySwatch: Colors.yellow
      ),
    );
  }
}


class HomeContent extends StatelessWidget {
  const HomeContent({Key key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Center(
      child:Container(
        width: 300.0,
        height: 800.0,
        decoration: BoxDecoration(
          color: Colors.yellow
        ),
        child: Image.network(
          "https://res11.bignox.com/player/www/dcd4813a71710a85aeda230fd3a7f8e5/FGDHHDKKKEbahHN.jpg",
          alignment: Alignment.bottomCenter,
          color: Colors.yellow,
          colorBlendMode:BlendMode.darken,
          //fit: BoxFit.cover,
          repeat: ImageRepeat.repeat,
        ),
      )
    );
  }
}




